package com.xinweisi.dataserver.timertask;

import com.xinweisi.dataserver.module.drawingverification.DrawingVerificationController;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * DrawingVerificationTimer
 *
 * @author lijie1
 * @version 1.0
 * @date 2020/8/4 0004 11:14
 */
@Data
@Slf4j
@Component
@EnableScheduling
public class DrawingVerificationTimer {
    @Autowired
    private DrawingVerificationController drawingVerificationController;

    @Scheduled(cron = "*/1 * * * * ?")
    public void run() {
        drawingVerificationController.calculationCoding();
    }
}
